package com.student.mapper;

import com.student.pojo.ArtistSchedules;
import com.student.pojo.Artists;
import com.student.pojo.ClickRecords;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ArtistSchedulesMapper {
    /**
     * 获取行程所有信息
     *
     * @param artistSchedules
     * @return
     */
    List<ArtistSchedules> artistsMessage(@Param("artistSchedules") ArtistSchedules artistSchedules);

    /**
     * 这边是添加行程信息
     *
     * @param artistSchedules
     * @return
     */
    Integer addArtistSchedules(@Param("artistSchedules") ArtistSchedules artistSchedules);

    /**
     * 这边是修改行程信息
     *
     * @param artistSchedules
     * @return
     */
    Integer updateArtistSchedules(@Param("artistSchedules") ArtistSchedules artistSchedules);

    /**
     * 用户前端页面的艺人展示
     *
     * @param artistSchedules
     * @return
     */
    List<ArtistSchedules> getAllArtistSchedulesPerson(@Param("artistSchedules") ArtistSchedules artistSchedules);

    /**
     * 显示单个行程信息
     *
     * @param id
     * @return
     */
    ArtistSchedules SingleArtistSchedules(@Param("id") Integer id);

    Integer toggleLike(@Param("id") Integer id,@Param("likesCount") Integer likesCount,@Param("artistId") Integer artistId);

    List<ClickRecords> select(@Param("id") Integer id, @Param("artistId") Integer artistId);

    int update(@Param("id") Integer id, @Param("likesCount") Integer likesCount);

    int insert(@Param("newClickRecord") ClickRecords newClickRecord);
}
